package com.vitalfit.client;


import com.vitalfit.model.entity.food.FoodCustomization;
import com.vitalfit.model.entity.food.FoodItem;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(name = "food-service")
public interface FoodServiceClient {

    @GetMapping( "/api/v1/food-items/{foodItemId}")
    FoodItem getFoodItemById(@RequestHeader("Authorization") String authorizationHeader, @PathVariable("foodItemId") Integer foodItemId);

    @GetMapping("/api/v1/food-customizations/{id}")
    FoodCustomization getFoodCustomization(@RequestHeader("Authorization") String authorizationHeader, @PathVariable("id") Integer id);

}
